package com.zx.Ding;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@ServletComponentScan
@EnableTransactionManagement
/*开启缓存注解功能*/
@EnableCaching
/*在SpringBootApplication上使用@ServletComponentScan注解后，Servlet、Filter、Listener可以直接通过
@WebServlet、@WebFilter、@WebListener注解自动注册，无需其他代码。*/
public class DingApplication {
    public static void main(String[] args) {
        SpringApplication.run(DingApplication.class,args);
        log.info("项目启动成功");
    }
}
